package pri.damai.xiaowu.common.core.enums;

import pri.damai.xiaowu.common.core.enums.base.IntegerEnumerator;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 *
 * @Desc
 * @Author DaMai
 * @Date 2021/5/28 15:57
 * 但行好事，莫问前程。
 */
@Getter
@AllArgsConstructor
public enum FlagEnum implements IntegerEnumerator {

    /** 是或否 */
    IS(1, "表肯定含义"),
    NOT(0, "表否定含义");

    private final Integer code;
    private final String msg;
    ;

    @Override
    public Integer code() {
        return code;
    }

    @Override
    public String desc() {
        return msg;
    }
}
